<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="js/public.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/font.js"></script>
    <link rel="stylesheet" href="css/base.css">
    <script src="js/public.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="css/ui.css">
    <title>抱歉出错了,请在微信客户端打开链接</title>
</head>
<style>
        
.view-container{
    text-align: center;
}
    
.view-container img{
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
}
.view-container p{
    font-size: 0.2rem;
}
</style>
<body>
<div class="view-container" style="overflow:auto;background: #fff;">
    <img src="images/weixinlishi.png"" alt="">
    <p>请在微信客户端打开链接</p>
</div>
</body>
<script>
    $(function() {
        sessionStorage.clear();
        localStorage.clear();
        //判断是否在微信端
        isWeChat();
    });
    function isWeChat() {
        $.ajax({
            url: url() + 'api/admin/isWeChat', //请求的url地址
            dataType: "JSON", //返回格式为json
            async: true, //请求是否异步，默认为异步，这也是ajax重要特性
            type: "GET", //请求方式
            success: function (data) {
                //请求成功时处理
                if(data.status == 1){
                    console.log(data.msg);
                    window.location.href = 'login.html';
                }if (data.status == -1) {
                    console.log(data.msg);
                }
            }
        });
    }
</script>

</html> 






